import store from "@/store";
export const formItemStyle = {
  paddingLeft: "20px",
};

export const cellStyle = {
  background: "rgba(28, 155, 252, 0.02)",
  color: "rgb(142, 155, 185)",
  textAlign: "center",
};

// 表头单元格样式
export const headerCellStyle = {
  background: "rgba(28, 155, 252, 0.02)",
  color: "rgb(142, 155, 185)",
  textAlign: "center",
};
// 表格内表单子样式
export const tableFormStyle = {
  marginBottom: 0,
};
export const formBase = [
  {
    label: "地址关键字",
    type: "input",
    field: "addrKeyword",
  },
];

export const tableBase = [
  {
    label: "ID",
    prop: "id",
    width: 50,
  },
  {
    label: "地址关键字",
    prop: "addrKeyword",
    width: 200,
    operate: {
      type: "input",
      field: "addrKeyword",
    },
  },
  {
    label: "承运商",
    prop: "carrierName",
    width: 200,
    operate: {
      type: "select",
      field: "carrierId",
      optionsKey: "carrierName",
      optionsValue: "id",
      options: store.state.custom_dict.carrier,
    },
  },
  {
    label: "偏远费",
    prop: "remotePrice",
    operate: {
      type: "inputNumber",
      field: "remotePrice",
      otherOptions: {
        precision: 2,
        step: 0.1,
        min: 0,
      },
    },
  },
  {
    label: "时效",
    prop: "ageingName",
    width: 200,
    operate: {
      type: "select",
      field: "ageingId",
      optionsKey: "name",
      optionsValue: "id",
      options: store.state.custom_dict.timely,
    },
  },
  {
    label: "创建时间",
    prop: "createTime",
  },
];
